

local mt = ac.skill['热血战魂']
function mt:on_add()
    local hero = self.owner
    self:gc(hero:add('攻击间隔',-self.data1))
    self:gc(hero:add('敏捷成长',self.data2))
end

local mt = ac.skill['战斗专注']
function mt:on_add()
    local hero = self.owner
    local select_target = nil
    local count = 0
    self:gc(hero:event '单位-攻击命中'(function(_,_,target)
        if target==select_target then
            count = count + self.data1
            hero:add('攻击速度',self.data1)
        else
            hero:add('攻击速度',-count)
            select_target = target
            count = 0
        end
    end))
    self:gc(function()
        hero:add('攻击速度',-count)
    end)
end